﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Sample
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnIniRW_Click(object sender, EventArgs e)
        {
            oqis.core.common.file.ConfigIniFile cif = new oqis.core.common.file.ConfigIniFile("e:\\xx.ini");
            cif.SetValue("111", "k111", "v111");
            cif.SetValue("111", "fsfsdf", "v111");

            cif.SetValue("222", "k111", "v111");
            cif.SetValue("222", "fsdfs", "v111");

        }

        private void buttonAccessRW_Click(object sender, EventArgs e)
        {
            oqis.core.dbaccess.IOQISDBAccess dba = new oqis.core.dbaccess.MSAccessAccess(@"E:\共享\Database1.accdb", oqis.core.dbaccess.qiaoMSAccessVersion.Access2007);
            dba.ExcuteNoneQuery("insert into t_user values('2','sfdf','11111')");


            oqis.core.common.DateTimeFun dtf = new oqis.core.common.DateTimeFun();
            
        }

        private void btnXML_Click(object sender, EventArgs e)
        {
            oqis.core.common.file.XMLOperator xmlOp = new oqis.core.common.file.XMLOperator();
            xmlOp.ConfigureXmlElement("e:\\xx.xml", "姓名", "qqq");
            xmlOp.ConfigureXmlElement("e:\\xx.xml", "姓名", "subelem1", "subinner", "attTitle", "attText");
            xmlOp.ConfigureXmlElement("e:\\xx.xml", "姓名", "subelem2", "subinner", "attTitle", "attText");

            xmlOp.ConfigureXmlElement("e:\\xx.xml", "newnode", "newinner", "newtitle", "newAttributeText");
        }
    }
}
